package com.yzh.luckydraw.domain.strategy.model.res;

import com.yzh.luckydraw.common.Constants;
import com.yzh.luckydraw.domain.strategy.model.vo.DrawAwardVO;

/**
 * 抽奖结果封装类
 */
public class DrawResult {
    //用户ID
    private String uId;
    //策略ID
    private Long strategyId;
    //中奖状态：0未中奖、1已中奖、2兜底奖
    private Integer drawState = Constants.DrawState.FAIL.getCode();
    //奖品信息
    private DrawAwardVO drawAwardInfo;

    public DrawResult() {
    }
    public DrawResult(String uId, Long strategyId, Integer drawState) {
        this.uId = uId;
        this.strategyId = strategyId;
        this.drawState = drawState;
    }

    public DrawResult(String uId, Long strategyId, Integer drawState, DrawAwardVO drawAwardVO) {
        this.uId = uId;
        this.strategyId = strategyId;
        this.drawState = drawState;
        this.drawAwardInfo = drawAwardVO;
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public Long getStrategyId() {
        return strategyId;
    }

    public void setStrategyId(Long strategyId) {
        this.strategyId = strategyId;
    }

    public Integer getDrawState() {
        return drawState;
    }

    public void setDrawState(Integer drawState) {
        this.drawState = drawState;
    }

    public DrawAwardVO getDrawAwardInfo() {
        return drawAwardInfo;
    }

    public void setDrawAwardInfo(DrawAwardVO drawAwardVO) {
        this.drawAwardInfo = drawAwardVO;
    }
}
